/**
 * 
 */
package cn.com.xf.service;

import java.math.BigDecimal;
import java.util.List;

import cn.com.xf.domain.TblSiteCompany;
import cn.com.xf.domain.TblSiteFeedback;
import cn.com.xf.domain.TblSiteGray;
import cn.com.xf.domain.TblSiteJob;
import cn.com.xf.domain.TblSiteNews;
import cn.com.xf.domain.TblSiteProduct;
import cn.com.xf.domain.TblSiteResume;
import cn.com.xf.domain.TblSiteSeo;
import cn.com.xf.domain.TblSiteVedio;
import cn.com.xf.web.form.SiteForm;

/**
 * @author Administrator
 * 
 */
public interface SiteService {
	public TblSiteProduct selectProductByType(String productType);

	public TblSiteCompany selectCompanyByType(String type);

	public void updateProductByType(String productType, String content, String contentEn, String contentBig5);

	public void updateCompanyByType(String companyType, String content, String contentEn, String contentBig5);

	public int insertNews(TblSiteNews news);

	public List<TblSiteNews> selectNews(int begin, int pageSize, String searchField, String searchValue,
			String orderByField, String orderByMode, String isimportant, String istop, String type, String isShow);

	public int selectNewsCount(String filed, String value, String isimportant, String istop, String type, String isShow);

	public List<TblSiteNews> selectAll();

	public TblSiteNews selectNewsById(Integer id);

	public int updateNews(TblSiteNews news);

	public int deleteNews(BigDecimal id);

	public int insertVideo(TblSiteVedio video);

	public List<TblSiteVedio> selectVideos();

	public int selectVideoCount();

	public int deleteVideo(Integer id);

	public int updateVideo(TblSiteVedio video);

	public TblSiteVedio selectVideoById(Integer id);

	public List<TblSiteVedio> selectVideos(int begin, int pageSize, String orderByField, String orderByMode);

	public int insertJob(TblSiteJob job);

	public int selectJobCount();

	public List<TblSiteJob> selectJobs();

	public TblSiteJob selectJobById(Integer id);

	public int deleteJob(Integer id);

	public int updateJob(TblSiteJob job);

	public List<TblSiteJob> selectJob(int begin, int pageSize);

	public int selectFeedbackCount(String field, String value, String orderId);

	public List<TblSiteFeedback> selectFeedBack(int begin, int pageSize, String searchField, String searchValue,
			String orderByField, String orderByMode, String orderId);

	public TblSiteFeedback selectFeedbackById(Integer id);

	public List<TblSiteSeo> selectSiteSeoList();

	public TblSiteSeo selectSiteSeoById(String id);

	public int updateSiteSeo(String id, SiteForm form);

	/**
	 * 网站迁移
	 * 
	 * @return
	 */
	public int updateForCopyAllOldData(String contextPath);

	public int updateSiteGray(TblSiteGray siteGray);

	public TblSiteGray selectSiteGray();

	public int selectResumeCount(String jobName, String createDateBegin, String createDateEnd);

	public TblSiteResume selectResumeById(String id);

	public List<TblSiteResume> selectResume(int begin, int pageSize, String orderByField, String orderByMode,
			String jobName, String createDateBegin, String createDateEnd);

	public int deleteResumeById(String id);
}
